package com.cande.loki.exercise.mapstruct;

import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

/**
 * @auther ROCK CODER
 * @DATE 2022/8/29 19:53
 * @Description
 */
@Mapper
public interface DoctorMapper {
    DoctorMapper INSTANCE = Mappers.getMapper(DoctorMapper.class);
    @Mapping(source = "doctor.aa", target = "specialization")
    DoctorDto toDto(Doctor doctor);
}
